<?=$header?>

<body>

	<?=$navigate?>

	<!-- MAIN CONTENT -->

    <div id="content">

		

		<div class="page-full-width cf">



			<?=$sidebarleft?>

			

			<div class="side-content fr">

			

				

				<div class="content-module">

				

					<div class="content-module-heading cf">

					

						<h3 class="fl"><?=$title_page?></h3>

						<span class="fr expand-collapse-text">Click to collapse</span>

						<span class="fr expand-collapse-text initial-expand">Click to expand</span>

					

					</div> <!-- end content-module-heading -->

					

					

					<div class="content-module-main cf">

				

						<div class="half-size-column fl">

                            <?php 

                                $fieldCodeStaff = '';

                                $fieldLastName = '';
                                
                                $confirmpassword = '';
                                

                                $inputCodeError = '';

                                $inputLastNameError = '';
                                
                                $inputConfirmPassword = '';
                                

                                if(form_error('password') != ''){

                                    $fieldCodeStaff = 'form-error';

                                    $inputCodeError = 'error-input';

                                }

                                if(form_error('oldpassword') != ''){

                                    $fieldLastName = 'form-error';

                                    $inputLastNameError = 'error-input';

                                }
                                
                                if(form_error('confirmpassword') != ''){

                                    $confirmpassword = 'form-error';

                                    $inputConfirmPassword = 'error-input';

                                }

                            ?>
                            <?php 
                                $session_data = $this->session->userdata('logged_in');
                                $id = $session_data['id'];  
                            ?>
                            <?php echo form_open('user/changePassword/'.$id, array('method'=>'POST', 'id'=>'login-form')); ?>

	                           

								<fieldset>

									<p class='<?php echo $fieldLastName; ?>'><!--class="form-error"-->

										<label for="simple-input">Old Password</label>

										<input type="password" value="<?php echo set_value('oldpassword'); ?>" type="text" id="oldpassword" name="oldpassword" class="round default-width-input <?php echo $inputLastNameError; ?>" />

                                        <?php echo form_error('oldpassword', '<em>', '</em>'); ?>							

									</p>
                                    
                                    <p class='<?php echo $fieldCodeStaff; ?>'><!--class="form-error"-->

										<label for="simple-input">New Password</label>

										<input type="password" value="<?php echo set_value('password'); ?>" type="text" id="password" name="password" class="round default-width-input <?php echo $inputCodeError; ?>" />

                                        <?php echo form_error('password', '<em>', '</em>'); ?>							

									</p>
                                    
                                    <p class='<?php echo $confirmpassword; ?>'><!--class="form-error"-->

										<label for="simple-input">Confirm Password</label>

										<input type="password" value="<?php echo set_value('confirmpassword'); ?>" type="text" id="confirmpassword" name="confirmpassword" class="round default-width-input <?php echo $inputConfirmPassword; ?>" />

                                        <?php echo form_error('confirmpassword', '<em>', '</em>'); ?>							

									</p>

									<input type="submit" value="Change" name="submit" class="round blue ic-right-arrow" />

								</fieldset>

							

							</form>

						

						</div> <!-- end half-size-column -->

				

					</div> <!-- end content-module-main -->

					

				</div> <!-- end content-module -->

	

				

			</div> <!-- end side-content -->

		

		</div> <!-- end full-width -->

			

	</div> 

	<!-- end content -->

	

	

	

	<!-- FOOTER -->

	<?=$footer?>

    <!-- end footer -->



</body>

</html>